package com.furongji.education.mapper;

import com.furongji.education.domain.po.Chapter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author furongji
 * @since 2025-05-19
 */
public interface ChapterMapper extends BaseMapper<Chapter> {

    @Update("update edu_chapter set is_deleted = 1 where course_id = #{id} and is_deleted = 0")
    void deleteChapter(String id);
}
